<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| Salt Key.
|--------------------------------------------------------------------------
|
| Generate a salt key from the following website: 
| https://www.grc.com/passwords.htm
|
*/

$config['auth']['salt']	= '_b8772r9c?~{Oaj';

/*
|--------------------------------------------------------------------------
| Tables
|--------------------------------------------------------------------------
*/

$config['auth']['countries_table']	= 'ci_countries';
//$config['auth']['questions_table'] 	= 'questions';
$config['auth']['banned_table']		= 'ci_banned';
$config['auth']['groups_table']		= 'ci_groups';
$config['auth']['users_table'] 		= 'ci_users';
$config['auth']['users_profile_table']	= 'ci_users_profile';

/*
|--------------------------------------------------------------------------
| Email Activation
|--------------------------------------------------------------------------
|
| When this is set to true, the user will be required to 
| activate their account before they are allowed to login.
|
*/

$config['auth']['email_activation'] = TRUE;

/*
|--------------------------------------------------------------------------
| Email Settings
|--------------------------------------------------------------------------
|
| 'mailtype' : text or html.
| 'protocol' : The mail sending protocol.
| 'smtp_host' : SMTP Server Address.
| 'smtp_user' : SMTP Username.
| 'smtp_pass' : SMTP Password.
| 'smtp_port' : SMTP Port.
| 'mail_from_email' : Sets the email address of the person sending the email
| 'mail_from_namae' : Sets the name of the person sending the email
*/
$config['auth']['mail']['mailtype']		= 'html';
$config['auth']['mail']['protocol'] 	= 'smtp';
$config['auth']['mail']['smtp_host'] 	= 'ssl://smtp.gmail.com';
$config['auth']['mail']['smtp_user'] 	= 'admin@bautista.me';
$config['auth']['mail']['smtp_pass'] 	= '123456';
$config['auth']['mail']['smtp_port'] 	= '465';
$config['auth']['mail']['smtp_timeout'] 	= 60;
$config['auth']['mail']['newline']		= "\r\n";
$config['auth']['mail_from_email'] 		= 'admin@bautista.me';
$config['auth']['mail_from_name'] 		= 'Bautista.me';

/*
|--------------------------------------------------------------------------
| Default Group
|--------------------------------------------------------------------------
|
| The default group id your users will acquire
|
*/
$config['auth']['default_group'] = '2';

/*
|--------------------------------------------------------------------------
| Optional Columns
|--------------------------------------------------------------------------
|
| Experimental feature, for use see this guide :
| http://code.google.com/p/reduxauth/wiki/Optional_Registration_Fields
|
*/
$config['auth']['optional_columns']	= false;

/*
|--------------------------------------------------------------------------
| Email Activation Message Settings
|--------------------------------------------------------------------------
|
| {activation_code} will be replaced with the users email activation code.
|
*/
$config['auth']['email_activation_subject'] = 'Email Activation';

$config['auth']['email_activation_message'] = <<<HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		
	</head>
	<body>
		<h2>Email Activation</h2>
		<p>Click on this link to activate your email : <a href="http://www.bautista.me/users/activate/{activation_code}">http://www.bautista.me/users/activate/{activation_code}</a></p>
	</body>
</html>

HTML;

/*
|--------------------------------------------------------------------------
| Admin Registered Message Settings (activated account)
|--------------------------------------------------------------------------
|
| {email} will be replaced with the email of the account.
| {password} will be replaced with the password of the account.
| {base_url} will be replaced with the site's base URL.
|
*/
$config['auth']['email_admin_registered_subject'] = 'An account has been made for you';

$config['auth']['email_admin_registered_message'] = <<<HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>

	</head>
	<body>
		<h2>An account has been made for you</h2>
		<p>You can now login to <a href="{base_url}users/login/">{base_url}</a> using the following details:</p>
		<p>Email: {email}<br />
			Password: {password}</p>
	</body>
</html>

HTML;

/*
|--------------------------------------------------------------------------
| Admin Registered Message Settings (not activated account)
|--------------------------------------------------------------------------
|
| {email} will be replaced with the email of the account.
| {password} will be replaced with the password of the account.
| {base_url} will be replaced with the site's base URL.
| {key} will be replaced with the activation code.
|
*/
$config['auth']['email_admin_activation_subject'] = 'An account has been made for you';

$config['auth']['email_admin_activation_message'] = <<<HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>

	</head>
	<body>
		<h2>An account has been made for you</h2>
		<p>Before you can login, you will need to click on the following link:</p>
		<p><a href="{base_url}users/activate/{key}">{base_url}users/activate/{key}</a></p>
		<p>Email: {email}<br />
			Password: {password}</p>
	</body>
</html>

HTML;

/*
|--------------------------------------------------------------------------
| Activated Email Message Settings
|--------------------------------------------------------------------------
|
| {name} will be replaced by the full name of the owner of the activated account
| {login_link} will be replaced by login link of the site
|
*/
$config['auth']['activated_email_subject'] = 'Your account has been activated';

$config['auth']['activated_email_message'] = <<<HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>

	</head>
	<body>
		<h2>Welcome {name}</h2>
		<p>Your account has been activated. You can now <a href="{login_link}">login</a> to our site.</p>
	</body>
</html>

HTML;

/*
|--------------------------------------------------------------------------
| Banned User Message Settings
|--------------------------------------------------------------------------
|
| {name} will be replaced by the full name of the owner of the activated account
| {reason} will be replaced by reason for the ban
|
*/
$config['auth']['banned_email_subject'] = 'Your account has been banned';

$config['auth']['banned_email_message'] = <<<HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>

	</head>
	<body>
		<h2>You have been banned</h2>
		<p>Your account has been banned for the following reason:</p>
		<p><strong>{reason}</strong></p>
	</body>
</html>

HTML;

/*
|--------------------------------------------------------------------------
| Confirm Password Reset Message Settings
|--------------------------------------------------------------------------
|
| {reset_password_link} will be replaced by the reset link
|
*/
$config['auth']['confirm_reset_password_subject'] = 'You have requested to reset your password';

$config['auth']['confirm_reset_password_message'] = <<<HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>

	</head>
	<body>
		<h2>You have requested to reset your password</h2>
		<p>Please click on the following link to confirm:</p>
		<p><a href="{reset_password_link}">{reset_password_link}</a></p>
		<p>Another email will be sent to you with your new password.</p>
		<p>If you did not request for your password to be reset, simply ignore this message</p>
	</body>
</html>

HTML;

/*
|--------------------------------------------------------------------------
| Password Reset Message Settings
|--------------------------------------------------------------------------
|
| {password} will be replaced with the new password
|
*/
$config['auth']['reset_password_subject'] = 'Your password has been reset';

$config['auth']['reset_password_message'] = <<<HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>

	</head>
	<body>
		<h2>Your password has been reset</h2>
		<p>Your new password is now: {password}</p>
	</body>
</html>

HTML;
